package com.elepant.dp.cor;

public class HtmlFilter implements Filter{
    @Override
    public void doFilter(Request request, Response response,FilterChain filterChain) {
        request.hearder = request.hearder.replace("<","[");
        System.out.println("开始处理html request："+request.hearder);

        //处理完request 后转交给下个filter继续处理
        filterChain.doFilter(request,response);

        response.hearder = "html response processed!";
        System.out.println("开始处理html response："+response.hearder);

    }
}
